package com.example.demo.filters.outbound;

import com.netflix.zuul.filters.http.HttpOutboundSyncFilter;
import com.netflix.zuul.message.http.HttpResponseMessage;

/**
 * @author sleepforests
 * Created on 2019-06-27
 */
public class OutBFilter extends HttpOutboundSyncFilter {


    @Override
    public HttpResponseMessage apply(HttpResponseMessage input) {

        System.out.println("OutBFilter apply########");
        return input;
    }

    @Override
    public int filterOrder() {
        return 31;
    }

    @Override
    public boolean shouldFilter(HttpResponseMessage msg) {
        return true;
    }
}
